$(function () {
    var eid = GetQueryString("eid");
    var sel = $.Params.create();
    sel.ajax("get", getMeetIP() + "meet/" + eid, function (data) {
            var val = data;
            $("#meetTitle").val(val.meetTitle);
            $("#startTime").val(val.startDate);
            $("#endTime").val(val.endDate);
    })

    $("#addData").on("click", function () {
        var meetTitle = $("#meetTitle").val();
        var startDate = $("#startTime").val();
        var endDate = $("#endTime").val();
        var addSel = $.Params.create();
        addSel.addParams("meetTitle", meetTitle);
        addSel.addParams("startDate", startDate);
        addSel.addParams("endDate", endDate);
        addSel.ajax("put", getMeetIP() + "meet/"+eid, function (data) {
          
               window.location.href = "meetList.html";
           
        })
    })

    $("#cancelAdd").on("click", function () {
        history.go(-1);
    })
})